<#include "common.ftl">
<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/inc/tld.jsp"%>
<jsp:include page="../common/inc/header.jsp">
    <jsp:param name="title" value=" " />
</jsp:include>
<script type="text/javascript" src="<%=request.getServletContextPath()%>/js/${entityBean.javaName?uncap_first}.js>"></script>
<!-- --------查询区域----------- -->
<div id="tbdiv" class="win">
    <form id="searchForm">
        <table>
<#list columnBeanList as columnBean>
            <tr>
                <th>${columnBean.property}</th>
                <td>
                    <input id="${columnBean.property}_search" name="${beanObject}.${columnBean.property}" <#if columnBean.dataType == "Date">class="dateTime"</#if>/>
                </td>
            </tr>
</#list>
            <tr>
                <td>
                    <input class="query" type="button" value="查询"/>
                </td>
                <td>
                    <input class="reset" type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form>
</div>

<div style="height: 3px;"></div>

<s:set value="#session.permString" name="str"></s:set>
<!-- ---------操作栏-------------- -->
<div id="toolbar" class="om-widget-header">
    <s:if test="true">
        <input class="create" type="button" value="新增" />
    </s:if>
    <s:if test="true">
        <input class="modify" type="button" value="修改" />
    </s:if>
    <s:if test="true">
        <input class="show" type="button" value="查看" />
    </s:if>
    <s:if test="true">
        <input class="remove" type="button" value="删除" />
    </s:if>
</div>

<!-- ---------TAB表格-------------- -->
<div id="make_tab">
    <ul>
        <li>
            <a href="#tab1">tab1</a>
        </li>
        <li>
            <a href="#tab2">tab2</a>
        </li>
    </ul>
    <div id="tab1">
        <table id="grid1"></table>
    </div>
    <div id="tab2">
        <table id="grid2"></table>
    </div>
</div>

<!-- 添加表单 start -->
<div id="dialog-form-add" class="tianbiao">
    <form id="addForm">
        <table>
            <tr>
                <td>
                    <table>
                        <caption>
                            <input id="oprType" style="width: 185px;" type="hidden" value="0"/>
<#list columnBeanList as columnBean>                        
<#if columnBean.isPrimaryKey>    
                            <input type="hidden" id="${columnBean.property}" name="${beanObject}.${columnBean.property}"/>
</#if>                            
</#list>
                        </caption>
<#list columnBeanList as columnBean>
<#if !columnBean.isPrimaryKey>
                        <tr>
                            <th>
                                <font color="red">*</font>${columnBean.property}:
                            </th>
                            <td>
                                <input id="${columnBean.property}" name="${beanObject}.${columnBean.property}" 
                                        class="hasComment<#if columnBean.dataType=="Date"> dateTime"</#if>"/>
                            </td>
                        </tr>
</#if>                        
</#list>
                    </table>
                </td>
                <td class="line"></td>
                <td class="comment">
                    <textarea class="commentInfo" name="comment_add" disabled="disabled"></textarea><br/>
                    <input class="commentModify" type="button" value="修改"/>      
                </td>
            </tr>
        </table>
    </form>
</div>
<!-- 添加表单  end -->

<!-- 修改表单 start -->
<div id="dialog-form-update" class="tianbiao">
    <form id="updateForm">
        <table>
            <tr>
                <td>
                    <table>
                        <caption>
                            <input id="oprType" style="width: 185px;" type="hidden" value="0"/>
<#list columnBeanList as columnBean>                        
<#if columnBean.isPrimaryKey>    
                            <input type="hidden" id="${columnBean.property}_update" name="${beanObject}.${columnBean.property}"/>
</#if>                            
</#list>
                        </caption>
<#list columnBeanList as columnBean>
<#if !columnBean.isPrimaryKey>
                        <tr>
                            <th>
                                <font color="red">*</font>${columnBean.property}:
                            </th>
                            <td>
                                <input id="${columnBean.property}_update" name="${beanObject}.${columnBean.property}" 
                                        class="hasComment<#if columnBean.dataType=="Date"> dateTime"</#if>"/>
                            </td>
                        </tr>
</#if>                        
</#list>
                    </table>
                </td>
                <td class="line"></td>
                <td class="comment">
                    <textarea class="commentInfo" name="comment_add" disabled="disabled"></textarea><br/>
                    <input class="commentModify" type="button" value="修改"/>      
                </td>
            </tr>
        </table>
    </form>
</div>
<!-- 修改表单  end -->

<!-- 显示表单 start -->
<div id="dialog-form-show">
    <input type="hidden" id="uuid">
    <table>
<#list columnBeanList as columnBean>
<#if !columnBean.isPrimaryKey>
        <tr>
            <th>${columnBean.property}:</th>
            <td class="show_filed">
                <span id="${columnBean.property}_show" />
            </td>
        </tr>
</#if>                        
</#list>
    </table>
</div>
<!-- 显示表单 end -->

<!-- 修改提示信息 start -->
<div id="dialog-comment-show" class="dialog-form-show comment">
    <table>
        <tr>
            <td>
                <input type="hidden" id="col" name="col" value=""/>
                <input type="hidden" id="tab" name="tab" value=""/>
                <textarea name="com" class="commentInfo" id="comment_edit"></textarea><br/>
            </td>
        </tr>
    </table>
</div>
<!-- 修改提示信息 end -->

<jsp:include page="../common/inc/footer.jsp" />